/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.product;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 乐购产品评价Entity
 * @author 罗天文
 * @version 2018-05-19
 */
public class HkShopProductCommentImg extends DataEntity<HkShopProductCommentImg> {
	
	private static final long serialVersionUID = 1L;
	private HkShopProductComment comment;		// 评论id 父类
	private String imgSrc;		// 图片
	
	public HkShopProductCommentImg() {
		super();
	}

	public HkShopProductCommentImg(String id){
		super(id);
	}

	public HkShopProductCommentImg(HkShopProductComment comment){
		this.comment = comment;
	}

	public HkShopProductComment getComment() {
		return comment;
	}

	public void setComment(HkShopProductComment comment) {
		this.comment = comment;
	}
	
	@Length(min=0, max=200, message="图片长度必须介于 0 和 200 之间")
	public String getImgSrc() {
		return imgSrc;
	}

	public void setImgSrc(String imgSrc) {
		this.imgSrc = imgSrc;
	}
	
}